<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:comp="http://java.sun.com/jsf/composite/register">
<h:head>
	<title>JSF 2.0 Hello World</title>
</h:head>
<ui:composition template="/templates/layout.xhtml">
	<ui:define name="content">
		<h3>JSF 2.0 + Ajax Hello World Example</h3>
		<h:form>
			<h:inputText id="name" value="#{helloBean.name}"></h:inputText>
			<h:commandButton value="Welcome Me">
				<f:ajax execute="name" render="output" />
			</h:commandButton>
			<h2>
				<h:outputText id="output" value="#{helloBean.sayWelcome}" />
			</h2>
		</h:form>
		<comp:register regButtonText="Register" managedBean="#{registerBean}" regAction="#{registerBean.register}" />
	</ui:define>
</ui:composition>
</html>
